<?php
/**
 * Descript: 用户模型
 * User: lufeng501206@gmail.com
 * Date: 2017/3/7 23:09
 */

namespace App\Models\Home;


use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    protected $table = 'home_users';

    public function tasks()
    {
        return $this->belongsToMany('App\Models\Admin\Tasks', 'orders', 'user_id', 'task_id');
    }
}